﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:TheGame="clr-namespace:Waaahsabi.Controls.TheGame;assembly=Waaahsabi.Controls.TheGame" mc:Ignorable="d"
	x:Class="TheGameClient.BrowserIntro"
	d:DesignWidth="933" d:DesignHeight="665">
	<UserControl.Resources>
		<Storyboard x:Name="DistortionAnimation" RepeatBehavior="Forever" AutoReverse="False">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(TimedDistortEffect.WaveStrength)" Storyboard.TargetName="grid">
				<SplineDoubleKeyFrame KeyTime="0" Value="-0.1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5.05" Value="0.1"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5.25" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5.95" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:6" Value="-0.3"/>
				<EasingDoubleKeyFrame KeyTime="0:0:6.2" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:8" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(TimedDistortEffect.Frequency)" Storyboard.TargetName="grid">
				<EasingDoubleKeyFrame KeyTime="0" Value="-5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5.05" Value="10"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5.25" Value="10"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5.95" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="0:0:6" Value="10"/>
				<EasingDoubleKeyFrame KeyTime="0:0:6.1" Value="20"/>
				<EasingDoubleKeyFrame KeyTime="0:0:6.2" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Effect).(BlurEffect.Radius)" Storyboard.TargetName="border">
				<EasingDoubleKeyFrame KeyTime="0" Value="5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="2"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5" Value="2"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5.05" Value="5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5.25" Value="2"/>
				<EasingDoubleKeyFrame KeyTime="0:0:5.95" Value="2"/>
				<EasingDoubleKeyFrame KeyTime="0:0:6" Value="5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:6.1" Value="5"/>
				<EasingDoubleKeyFrame KeyTime="0:0:6.2" Value="2"/>
				<EasingDoubleKeyFrame KeyTime="0:0:8" Value="2"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<Border x:Name="border" BorderThickness="3" CornerRadius="20" BorderBrush="Black" Width="640" Height="480">
			<Border.Background>
				<RadialGradientBrush RadiusY="0.812" GradientOrigin="0.5,0.945">
					<GradientStop Color="#FF003479" Offset="1"/>
					<GradientStop Color="#FF4092FF"/>
				</RadialGradientBrush>
			</Border.Background>
			<Border.Effect>
				<BlurEffect Radius="2"/>
			</Border.Effect>
			<Border x:Name="grid" Background="#02FFFFFF">
				<Border.Effect>
					<TheGame:TimedDistortEffect/>
				</Border.Effect>
				<StackPanel VerticalAlignment="Center" Margin="0" >
					<TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" Text="Welcome to The Game" VerticalAlignment="Top" Foreground="White" FontSize="32" FontFamily="Arial Black" Margin="0,0,0,10" Effect="{StaticResource DefaultGlowWhite}"/>
					<TextBlock TextWrapping="Wrap" VerticalAlignment="Top" Foreground="White" Width="527" Margin="0,0,0,10" TextAlignment="Center" Effect="{StaticResource DefaultGlowWhite}"><Run Text="This game is best experienced by running it outside the browser. Please click the Install button to install the game."/><LineBreak/><Run/><LineBreak/><Run Text="Security notice: This game, when installed, runs in a &quot;sand box&quot;, which means no files or personal data can be accessed. For privacy reasons, the game also DOES NOT access any Facebook data."/></TextBlock>
					<Button x:Name="btnInstallGame" Content="INSTALL" Style="{StaticResource DefaultButtonStyle}" FontFamily="Arial Black" FontSize="21.333" HorizontalAlignment="Center" Width="150" Foreground="Black" Effect="{StaticResource DefaultGlowWhite}" Click="BtnInstallGameClick"/>
				</StackPanel>
			</Border>
		</Border>
	</Grid>
</UserControl>